//
//  WYMomentItemViewModel.h
//  FriendCircleDemo
//
//  Created by mac on 2018/9/27.
//  Copyright © 2018年 WY. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "WYMoment.h"
#import "WYMomentCommentItemViewModel.h"
#import "WYMomentAttitudesItemViewModel.h"

@interface WYMomentItemViewModel : NSObject

/// 说说模型
@property (nonatomic, readwrite, strong) WYMoment *moment;

/// 昵称布局
@property (nonatomic, readwrite, strong) YYTextLayout *screenNameLableLayout;
/// 正文布局
@property (nonatomic, readwrite, strong) YYTextLayout *contentLableLayout;
/// 位置
@property (nonatomic, readwrite, strong) YYTextLayout *locationLableLayout;
/// 时间布局
@property (nonatomic, readwrite, strong) YYTextLayout *createAtLableLayout;
/// 来源布局
@property (nonatomic, readwrite, strong) YYTextLayout *sourceLableLayout;

/// ==== Frame Properties ====
/// 头像
@property (nonatomic, readwrite, assign) CGRect avatarViewFrame;
/// 昵称
@property (nonatomic, readwrite, assign) CGRect screenNameLableFrame;
/// 正文
@property (nonatomic, readwrite, assign) CGRect contentLableFrame;

/// 时间
@property (nonatomic, readwrite, assign) CGRect createAtLableFrame;

/// 来源
@property (nonatomic, readwrite, assign) CGRect sourceLableFrame;

/// 位置
@property (nonatomic, readwrite, assign) CGRect locationLableFrame;


/// 更多按钮
@property (nonatomic, readwrite, assign) CGRect operationMoreBtnFrame;
/// 全文/收起 按钮
@property (nonatomic, readwrite, assign) CGRect expandBtnFrame;
/// 配图View
@property (nonatomic, readwrite, assign) CGRect photosViewFrame;
/// 分享View
@property (nonatomic, readwrite, assign) CGRect shareInfoViewFrame;
/// 视频View
@property (nonatomic, readwrite, assign) CGRect videoViewFrame;

/// 点赞+评论列表 （设计为 可变数组 后期需要添加东西）
@property (nonatomic, readonly, strong) NSMutableArray *dataSource;

/// 辅助属性
/// 是否展开全文
@property (nonatomic, readwrite, assign , getter = isExpand) BOOL expand;

- (void)updateSubviewsFrameWithExpand:(BOOL)expand;
/// 整条说说的高度
@property (nonatomic, readwrite, assign) CGFloat height;

- (instancetype)initWithMoment:(WYMoment *)moment;
@end
